# -*- coding: utf-8 -*-
# @Time    : 2023/6/5 9:20
# @Author  : lxy
# @Email   : 1612393119@qq.com
# @File    : my_course_page.py
# @Software: PyCharm
from pages.base_page import BasePage
from appium.webdriver.common.mobileby import MobileBy as By
from tools import driver
from appium import webdriver

class MyCoursePage(BasePage):
    # 我的课程页面
    my_course_locator=(By.XPATH,'//android.widget.TextView[@resource-id=\"com.xiachufang:id/navigation_bar_title_layout\"]')

    # 获取页面title文本
    def my_course_title(self):
        course_title=self.find_element(self.my_course_locator).text
        return course_title